import java.util.ArrayList;
import java.util.Scanner;

public class javeTest {

    public static void main (String[]args){
        while(true){
        System.out.println("*********************************");
        System.out.println("*****微型计算器              ******");
        System.out.println("*****1、求和                 *****" + "\n" + "*****2、求差                 *****\n");
        System.out.println("*****3、求积                 *****");
        System.out.println("*****4、求商                 *****");
        System.out.println("*****5、求余                 *****");
        System.out.println("*****Q、退出                 *****");
        System.out.println("*****请选择您想执行的操作    *****");
        System.out.println("*********************************");
        Scanner sc = new Scanner(System.in);
        int number = sc.nextInt();
        System.out.println("输入数字1");
        int number1 = sc.nextInt();
        System.out.println("输入数字2");
        int number2 = sc.nextInt();
        switch (number) {
            case 1:

                System.out.println("两数求和的结果为:" + (number1 + number2));
                break;
            case 2:
                System.out.println("两数求差的结果为:" + (number1 - number2));
                break;
            case 3:
                System.out.println("两数求积的结果为:" + (number1 * number2));
                break;
            case 4:
                System.out.println("两数求商的结果为:" + (number1 / number2));
                break;
            case 5:
                System.out.println("两数求余的结果为:" + (number1 % number2));
                break;

        }

        }
    }
}